package com.heima.wemedia.feign;

import com.heima.apis.wemedia.IWmChannelClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;
import com.heima.wemedia.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author Xiao
 * @version 1.0
 * @description
 * @date 2021/11/29
 */
public class WmChannelClient implements IWmChannelClient {
    @Autowired
    private WmChannelService wmChannelService;
    /**
     * 查询频道列表
     * @return
     */
    @Override
    public ResponseResult getChannels() {
        return wmChannelService.getChannels();
    }

    /**
     * 删除频道
     * @param id
     * @return
     */
    @Override
    public ResponseResult delChannel(Integer id) {
        return null;
    }

    /**
     * 添加频道
     * @param adSensitive
     * @return
     */
    @Override
    public ResponseResult saveChannel(WmSensitive adSensitive) {
        return null;
    }

    /**
     * 修改频道
     * @param adSensitive
     * @return
     */
    @Override
    public ResponseResult updateChannel(WmSensitive adSensitive) {
        return null;
    }
}
